﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace EditorLauncher
{
    public interface ICallback
    {
        [OperationContract]
        void OnRichText(string richText);

        [OperationContract]
        void OnImage(byte[] imageData);

        [OperationContract]
        void OnClose();
    }

    [ServiceContract(CallbackContract=typeof(ICallback))]
    public interface IService
    {
        [OperationContract]
        string Connect();

        [OperationContract]
        string LoadEditor();

        [OperationContract]
        string LoadEditorWithData(byte[] imageData, string richText);

        [OperationContract]
        string Close();
    }
}
